<?php
/* @var $this KegiatanController */
/* @var $model Kegiatan */
/* @var $form CActiveForm */
global $array_gender, $bentuk_kegiatan;
?>

<div class="form">

    <?php
    $form = $this->beginWidget('CActiveForm',
            array(
        'id' => 'kegiatan-form',
        'enableAjaxValidation' => false,
    ));
    ?>

    <p class="note">Fields with <span class="required">*</span> are required.</p>

    <?php echo $form->errorSummary($model); ?>
    <table border="0" cellpadding="0" cellspacing="0" id="id-form">
        <tr>
            <td valign="top">
                <div class="tamuisianlabel"><b><?php
                        echo $form->labelEx($model, 'id_kelompok');
                        ?></b></div>
            </td>
            <td valign="top">
                <div class="tamuisianlabel"><b>:</b></div>
            </td>
            <td class="idform">
                <?php echo $model->idKelompok->nama_kelompok; ?>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <div class="tamuisianlabel"><b><?php
                        echo $form->labelEx($model, 'bentuk_kegiatan');
                        ?></b></div>
            </td>
            <td valign="top">
                <div class="tamuisianlabel"><b>:</b></div>
            </td>
            <td>
                <?php
                echo $form->dropDownList($model, 'bentuk_kegiatan',
                        $bentuk_kegiatan,
                        array(
                    'empty' => '(Pilih Bentuk Kegiatan)',
                    'style' => 'width:200px',));
                ?>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <div class="tamuisianlabel"><b><?php
                        echo $form->labelEx($model, 'gender');
                        ?></b></div>
            </td>
            <td valign="top">
                <div class="tamuisianlabel"><b>:</b></div>
            </td>
            <td valign="top">
                <?php
                echo $form->dropDownList($model, 'gender', $array_gender,
                        array(
                    'empty' => '(Pilih Gender)',
                    'style' => 'width:100px',));
                ?>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <div class="tamuisianlabel"><b><?php
                        echo $form->labelEx($model, 'tempat');
                        ?></b></div>
            </td>
            <td valign="top">
                <div class="tamuisianlabel"><b>:</b></div>
            </td>
            <td>
                <?php
                echo $form->textField($model, 'tempat',
                        array('size' => 30, 'maxlength' => 30));
                ?>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <div class="tamuisianlabel"><b><?php
                        echo $form->labelEx($model, 'waktu');
                        ?></b></div>
            </td>
            <td valign="top">
                <div class="tamuisianlabel"><b>:</b></div>
            </td>
            <td>
                <?php
                echo $form->textField($model, 'waktu',
                        array('size' => 30, 'maxlength' => 30));
                ?>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <div class="tamuisianlabel"><b><?php
                        echo $form->labelEx($model, 'penceramah');
                        ?></b></div>
            </td>
            <td valign="top">
                <div class="tamuisianlabel"><b>:</b></div>
            </td>
            <td>
                <?php
                echo $form->textField($model, 'penceramah',
                        array('size' => 30, 'maxlength' => 30));
                ?>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <div class="tamuisianlabel"><b><?php
                        echo $form->labelEx($model, 'kontak');
                        ?></b></div>
            </td>
            <td valign="top">
                <div class="tamuisianlabel"><b>:</b></div>
            </td>
            <td>
                <?php
                echo $form->textField($model, 'kontak',
                        array('size' => 30, 'maxlength' => 30));
                ?>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <div class="tamuisianlabel"><b><?php
                        echo $form->labelEx($model, 'keterangan');
                        ?></b></div>
            </td>
            <td valign="top">
                <div class="tamuisianlabel"><b>:</b></div>
            </td>
            <td class="idform">
                <?php
               /* $this->widget('ext.tinymce.TinyMce',
                        array(
                    'model' => $model,
                    'attribute' => 'keterangan',
                    'fileManager' => array(
                        'class' => 'ext.elFinder.TinyMceElFinder',
                        'connectorRoute' => 'elfinder/connector',),
                    'htmlOptions' => array('rows' => 6, 'cols' => 60,),));*/
                ?>
                	<?php echo $form->textArea($model,'keterangan',array('rows'=>2, 'cols'=>50)); ?>
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td class="idform"></td>
            <td valign="top">
                <?php
                echo CHtml::submitButton($model->isNewRecord ? 'Buat' : 'Simpan',
                        array('class' => 'form-submit'));
                ?>
            </td>

        </tr>
    </table>
    <?php $this->endWidget(); ?>

</div><!-- form -->